home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5047 < prev    next >
Encoding:
Text File  |  1996-08-05  |  4.0 KB  |  83 lines

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Schildt <- Advanced Books
  5. Date: 11 Feb 1996 00:39:38 GMT
  6. Organization: Los Alamos National Laboratory
  7. Distribution: world
  8. Message-ID: <TANMOY.96Feb10173938@qcd.lanl.gov>
  9. References: <8BA8405.02C70020DE.uuout@sourcebbs.com>
  10. NNTP-Posting-Host: qcd.lanl.gov
  11. Mime-Version: 1.0
  12. Content-Type: text
  13. In-reply-to: david.mohorn@sourcebbs.com's message of Sat, 10 Feb 96 17:09:00 -0500
  14.  
  15. In article <8BA8405.02C70020DE.uuout@sourcebbs.com>
  16. david.mohorn@sourcebbs.com (DAVID MOHORN) writes: 
  17. <snip>
  18.    M>: Oh, C'mon guy!  Aren't you being a bit tough on Schildt?
  19.  
  20.    M>The rather tedious nonsense about the void main() declaration is being
  21.     >blown out of all proportion. First of all, Schildt uses
  22.  
  23.    M> main() {
  24.    M> }
  25.  
  26.    M>as the declaration in 99.99% of all books I've seen. The other 1% has
  27.     >arguements. He must have used void main() in the Annotated Standard
  28.     >since people discuss it so much. If so (I haven't read the book),
  29.     >it is very unusual for him.
  30.  
  31.    The only book that I know of that uses the notorious void main(void) is
  32.    his "Teach Yourself C" book.  But he only uses this for the first half
  33.    of the book.  This is only because he doesn't want the reader to be
  34.    overwhelmed with all the data types and other things until he has a
  35.    chance to explain how functions return values and pass arguments.
  36.  
  37. This argument is extremely dangerous!!! Most schools of thought hold
  38. that unlearning is a more difficult experience than learning: If you
  39. think that teaching something which is explicitly wrong (as opposed to
  40. being an approximation which has validity in a certain realm) to avoid
  41. having the reader overwhelmed is bad pedantics. As a great physicist
  42. once said, things should be made as simple as possible, and no
  43. simpler. If you hold other views, I invite you to rethink your views
  44. in the light of what we know about the pervasiveness of learnt
  45. behaviour patterns (habits) in what we do in everyday life. I would
  46. hate to have any of my loved ones learn from a person who believes in
  47. what you just said. In teaching, a very strong negative point can
  48. often cloud many positive points: a lot of good researchers are
  49. terrible teachers. And, this is assuming that the author in question
  50. knows what is correct and portable C as opposed to what happens to
  51. work on his computer: reading his annotated C standard (where he
  52. presumably is _trying_ to talk about standard C) leaves very little
  53. room for that benefit of doubt.
  54.  
  55. In any case, are you really arguing that `void main(void)' is somehow
  56. simpler to understand that `main()'? Does the former really need you
  57. to know less about the type system in C than the latter? No one says
  58. that people have no right to like his book: all people express is
  59. their opinion of this book as a bad book to learn C from. Sure, many
  60. will point out that you can learn to program one little box (provided
  61. you have the right compilers etc.) from his book ... what people want
  62. to point out is that that task is completely different from learning
  63. the language called C.
  64.  
  65. I would suggest you try to understand _what_ people are objecting
  66. to. I would also suggest that you say something defensible instead of
  67. claiming that a reader needs to know less to comprehend `void
  68. main(void)' that `main()'.
  69.  
  70. Nothing above should be construed to mean that I support `main()'. I
  71. believe that one ought to teach people `int main(void)' from day one:
  72. but I am willing to admit that `main()' is an alternative pedagogical
  73. possibility. 
  74.  
  75. Cheers
  76. Tanmoy--
  77. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  78. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  79. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  80. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  81. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  82. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  83.